//
// Created by yin on 25-8-3.
//

#include "VoiceUart.h"
#include "usart.h"
#include "stdio.h"

void VoiceUart_Tx(uint8_t *tx_data)
{
    HAL_UART_Transmit(&huart6,tx_data,3,HAL_MAX_DELAY);
}


void VoiceUart_TxCmd(uint8_t cmd)
{
    uint8_t tx_data[3] = {0x55,cmd,0xAA};
    VoiceUart_Tx(tx_data);
}